package com.example.multiactivity
import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity

class FirstActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_first)

        val param = intent.getStringExtra("param") ?: "无参数"
        findViewById<TextView>(R.id.tv_param).text = param
    }
}